﻿using System.ServiceModel;
using System.ServiceModel.Web;
using System.IO;
using System.ServiceModel.Syndication;
using System;

namespace RSSAggregator_WebRole
{
    [ServiceContract]
    public interface IAgregatorService
    {
        [OperationContract]
        [WebGet(UriTemplate="feeds?category={category}&name={feedName}&format=rss")]
        Rss20FeedFormatter GetRssFeeds(string category, string feedName);

        [OperationContract]
        [WebGet(UriTemplate = "feeds?category={category}&name={feedName}&format=atom")]
        Atom10FeedFormatter GetAtomFeeds(string category, string feedName);
    }
}
